// 1401.[java进制] 16进制转2进制 https://oj.rnd.huawei.com/problems/1401/details
import java.util.Scanner;

public class No1401NumberSystemBase16ToBase2 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        Integer line = Integer.parseInt(s.nextLine().trim().substring(2), 16);
        System.out.println("0b" + Integer.toBinaryString(line));
    }
}
